package com.LeeCode;

/**
 * Alice 和 Bob 玩鲜花游戏
 */

public class Code3021 {
    public static void main(String[] args) {
        int n = 3, m = 2;
        System.out.println(new Code3021().flowerGame(n, m));
    }

    public long flowerGame(int n, int m) {
        int odd_x = (n + 1) / 2, even_x = n / 2;
        int odd_y = (m + 1) / 2, even_y = m / 2;

        long ans = (long) odd_x * even_y + (long) even_x * odd_y;
        return ans;
    }
}
